package com.newbingo.entity;


import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import javax.persistence.MappedSuperclass;

import com.newbingo.domain.common.EntitySupport;
import com.newbingo.domain.common.Identity;

@MappedSuperclass
public class User{

	private Integer uno;
	private String uname;
	private String upwd;
	private String trueName;
	private ContactInfo contactInfo;
	private String status;   //是否可用状态
	private Integer baseAmount;//基本额度
	private Integer balance;//剩余额度
	private Date regTime;//注册时间
    private Date lastLogTime;//最后登录时间
    private String lastLoginIp;//最后登录IP

	public Integer getBaseAmount() {
		return baseAmount;
	}
	public void setBaseAmount(Integer baseAmount) {
		this.baseAmount = baseAmount;
	}
	public Integer getBalance() {
		return balance;
	}
	public void setBalance(Integer balance) {
		this.balance = balance;
	}
	public Date getRegTime() {
		return regTime;
	}
	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}
	public Date getLastLogTime() {
		return lastLogTime;
	}
	public void setLastLogTime(Date lastLogTime) {
		this.lastLogTime = lastLogTime;
	}
	public String getLastLoginIp() {
		return lastLoginIp;
	}
	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="uno")
	public Integer getUno() {
		return uno;
	}
	public void setUno(Integer uno) {
		this.uno = uno;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getUpwd() {
		return upwd;
	}
	public void setUpwd(String upwd) {
		this.upwd = upwd;
	}
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	@Embedded
	public ContactInfo getContactInfo() {
		return contactInfo;
	}
	public void setContactInfo(ContactInfo contactInfo) {
		this.contactInfo = contactInfo;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	public User(){
		
	}
}
